package com.lsh.service;

import com.lsh.dao.db1.UserMapper;
import com.lsh.dao.db2.BlogMapper;
import com.lsh.entity.BlogBean;
import com.lsh.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ：LiuShihao
 * @date ：Created in 2020/7/7 3:44 下午
 * @desc ：
 */
@Service
//@Component
public class TestService {
    @Autowired
    UserMapper userMapper;
    @Autowired
    BlogMapper blogMapper;

    public List<User> findUser(){
        return userMapper.findUser();
    }

    public List<BlogBean> fingBlog(){
        return blogMapper.findBlog();
    }
}
